package com.hks.common.ex;

/**
 * 自定义 redis 异常信息处理
 */
public class RedisException extends RuntimeException{
    //状态码
    private Integer code;
    //信息
    private String message;

    public RedisException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
